<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="robots" content="nofollow">
<title><?php echo $api_name; ?></title>
<link rel="stylesheet" href="<?php echo SITEROOTURL; ?>api/info/doc/css/main.css">
</head>

<body>
<div id="header">
	<h1><?php echo $api_name; ?></h1>
</div>
<div id="main">
	<ol id="nav">
		<?php foreach($api_list as $kind_k => $kind_v){ ?>
		<li><a href="#<?php echo $kind_v['name']; ?>"><?php echo $kind_v['name']; ?></a></li>
		<?php } ?>
	</ol>
	<?php foreach($api_list as $kind_k => $kind_v){ ?>
	<div id="<?php echo $kind_v['name']; ?>" class="card">
		<h2><?php echo $kind_v['name']; ?></h2>
		<table>
			<colgroup>
				<col style="width:50px">
				<col style="width:300px">
				<col>
			</colgroup>
		<?php
			foreach($kind_v['kind'] as $api_k => $api_v){
				echo '<tr>';
				echo '<td>'.($api_k+1).'.</td>';
				echo '<td><a href="doc/'.$api_v['name'].'">'.$api_v['name'].'</a></td>';
				echo '<td>'.$api_v['summary'].'</td>';
				echo '</tr>';
			}
		?>
		</table>
	</div>	
	<?php } ?>
</div>
<div id="footer">
	<p>本接口由 <a href="http://1one.cn" target="_blank">杭州易网新科技</a> 提供技术支持</p>
</div>
</body>
</html>